package org.jackysoft.entity;

import java.util.Calendar;

import javax.persistence.Entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.jackysoft.entity.AbstractEntity;

@Entity
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Folder extends AbstractEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5324769399810764704L;
	
	private String text;
	
	private Calendar createTime;	
	private String parent;
	private String  owner;
	private String type;
	
	
  

	/**
	 * 
	 */
	public Folder() {
	   this.setText("新建文件夹 ");
	}
	public Folder(String title) {		
		this.text = title;
	}
	
	
	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @return the createTime
	 */
	public Calendar getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(Calendar createTime) {
		this.createTime = createTime;
	}
	/**
	 * @return the parent
	 */
	public String getParent() {
		return parent;
	}

	/**
	 * @param parent the parent to set
	 */
	public void setParent(String parent) {
		this.parent = parent;
	}
	
	/**
	 * @return the owner
	 */
	public String getOwner() {
		return owner;
	}
	/**
	 * @param owner the owner to set
	 */
	public void setOwner(String owner) {
		this.owner = owner;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getType() {
		return type;
	}
}
